package org.charles.zhifou.model.dto.app;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;
import org.charles.zhifou.enums.ReviewStatusEnum;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * <h1>基础审核请求</h1>
 *
 * @author charles
 * @version 1.0
 */
@Data
public class AppReviewRequest implements Serializable {

    @Schema(description = "被审核的 App 的 id")
    @Min(value = 1, message = "id 必须大于 0")
    private Long id;

    @Schema(description = "状态: 0-待审核, 1-通过, 2-拒绝")
    private ReviewStatusEnum reviewStatus;

    @Schema(description = "审核信息")
    @Length(min = 1, max = 512, message = "审核信息不能为空且长度不能超过 512 个字符")
    private String reviewMessage;
}